namespace MVCWeekOne.Models
{
    /// <summary>
    /// API设置配置类
    /// </summary>
    public class ApiSettings
    {
        /// <summary>
        /// 配置节点名称
        /// </summary>
        public const string SectionName = "ApiSettings";

        /// <summary>
        /// 读API基础URL
        /// </summary>
        public string ReadApiUrl { get; set; } = "http://39.105.169.45:8001/api";

        /// <summary>
        /// 写API基础URL  
        /// </summary>
        public string WriteApiUrl { get; set; } = "http://39.105.169.45:8002/api";

        /// <summary>
        /// 请求超时时间（秒）
        /// </summary>
        public int TimeoutSeconds { get; set; } = 30;

        /// <summary>
        /// 是否启用重试机制
        /// </summary>
        public bool EnableRetry { get; set; } = true;

        /// <summary>
        /// 重试次数
        /// </summary>
        public int RetryCount { get; set; } = 3;
    }
}